package com.qf.day02;

import java.util.Scanner;

public class Dome04 {
    public static void main(String[] args) {
        System.out.println("输入积分");
        Scanner sc = new Scanner(System.in);
        int jf = sc.nextInt();
        System.out.println("输入金额");
        int money = sc.nextInt();
        if (jf < 2000 && jf > 0) {
            System.out.println(money * 0.9);
        } else if (jf > 2000 && jf <= 4000) {
            System.out.println(money * 0.8);
        } else if (jf >= 4000 && jf < 8000) {
            System.out.println(money * 0.7);
        } else {
            System.out.println(money * 0.6);
        }
    }

}
